<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>HowMuch Services API</title>
</head>
<body>
	<b>--- Metodos entidad Product:</b>
	<br/>
	<br/>
	<br/>
	<b>------ Show</b>
	<br/>
	<p>Parametros: Integer productId (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>GET http://ip:port/howmuch-services/rest/product/show.json?productId=5 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>{"id":5,"productcategory":{"id":2,"name":"Golosina","description":null},"name":"Caramelos Billiken","description":"Caramelos Billiken update","deleted":false,"createuser":1,"updateuser":1,"createdate":1349885213000,"updatedate":1349886048000}</p>
	<br/>
	<br/>
	<br/>
	<b>------ List</b>
	<br/>
	<p>Parametros: Integer productSubCategoryId (req), Integer pageNumber (req), Integer size (req)</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>GET http://ip:port/howmuch-services/rest/product/list.json?productSubCategoryId=1&pageNumber=1&size=10 HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>[{"id":6,"productcategory":{"id":2,"name":"Golosina","description":null},"name":"Rocklets","description":null,"deleted":false,"createuser":1,"updateuser":null,"createdate":1349893584000,"updatedate":null},{"id":4,"productcategory":{"id":2,"name":"Golosina","description":null},"name":"Caramelos Sugus","description":null,"deleted":false,"createuser":1,"updateuser":null,"createdate":1349809460000,"updatedate":null},{"id":5,"productcategory":{"id":2,"name":"Golosina","description":null},"name":"Caramelos Billiken","description":"Caramelos Billiken update","deleted":false,"createuser":1,"updateuser":1,"createdate":1349885213000,"updatedate":1349886048000},{"id":2,"productcategory":{"id":2,"name":"Golosina","description":null},"name":"Alfajor Jorgito","description":null,"deleted":false,"createuser":1,"updateuser":null,"createdate":1349466554000,"updatedate":null},{"id":3,"productcategory":{"id":2,"name":"Golosina","description":null},"name":"Alfajor Guaymallen","description":null,"deleted":false,"createuser":1,"updateuser":null,"createdate":1349809355000,"updatedate":null}]</p>
	<br/>
	<br/>
	<br/>
	<b>------ Create</b>
	<br/>
	<p>Parametros: Integer productSubCategoryId (req), String name (req), String description</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>PUT http://ip:port/howmuch-services/rest/product/create.json?productSubCategoryId=2&name=Rocklets%20Max&description=Maaaaaaaaaax HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>{"status":"done"}</p>
	<br/>
	<br/>
	<br/>
	<b>------ Update</b>
	<br/>
	<p>Parametros: Integer productId (req), Integer productSubCategoryId (req), String name (req), String description</p>
	<b>Ejemplo HttpRequest:</b>
	<br/>
	<br/> 
	<p>PUT http://ip:port/howmuch-services/rest/product/update.json?productId=5&productSubCategoryId=2&name=Caramelos%20Billiken&description=Caramelos%20Billiken%20update HTTP/1.1</p>
	<p>Cookie: JSESSIONID=14F273C48CBD0EDA86E635299576E747; Path=/</p>
	<br/> 	
	<b>Ejemplo HttpResponse:</b>
	<br/>	
	<p>HTTP/1.1 200 OK</p>
	<p>Content-Type: application/json</p>
	<p>{"status":"done"}</p>
	<br/>
	<br/>
	<br/>							
	<a href="../index.jsp">Volver</a>	
</body>
</html>